<template>
  <el-form 
      label-width="120px"
      size="small">
    <el-row>
      <el-col :span="18">
        <el-form-item label="发布对象分类">
          <el-input disabled v-model="featureDetailInfo.categoryName"></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18">
        <el-form-item label="发布对象名称">
          <el-input disabled v-model="featureDetailInfo.publishName"></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18">
        <el-form-item label="发布对象描述">
          <el-input disabled v-model="featureDetailInfo.description"></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18">
        <el-form-item label="业务特征">
          <el-input disabled v-model="featureDetailInfo.featureLabels"></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18">
        <el-form-item label="发布菜单">
          <el-input disabled v-model="featureDetailInfo.menuName"></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18">
        <el-form-item label="数据库">
          <el-input disabled v-model="featureDetailInfo.databaseName"></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18">
        <el-form-item label="物理表">
          <el-input disabled v-model="featureDetailInfo.tableNames"></el-input>
        </el-form-item>
      </el-col>
    </el-row>
  </el-form>
</template>

<script>
  import { $FeaturePublishApi } from '@/network/feature/FeaturePublishApi';
  export default {
    name: "FeatureDetailForm",
    props: {
      recordId: {
        type: String
      }
    },
    data() {
      return {
        featureDetailInfo: {}
      }
    },

    methods: {
      
      async loadDetailData() {
        const res = await $FeaturePublishApi.getFeaturePublishDetail({
          recordId: this.recordId
        })    
        this.featureDetailInfo = res.data;
      }
    },

    created() {
      this.loadDetailData();
    },


  }
</script>

<style>

</style>